/*function disabledDelete(row, type) {
  if (type == 'delete' && row.type !== '0') {
    return true
  }
  return false
}*/

export const tableColumn = [
  {
    label: '编号',
    prop: 'id'
  },
  {
    label: '文件名',
    prop: 'fileName'
  },
  {
    label: '下载次数',
    prop: 'downCounts'
  },
  {
    label: '上传时间',
    prop: 'updateTime'
  },
  {
    prop: '',
    label: '操作',
    width: '300px',
    align: 'center',
    type: 'outlineoper',
    // disabledMethod: disabledDelete,
    children: [
      {
        label: '下载',
        oper: 'download',
        type: 'primary'
      },
      {
        label: '删除',
        oper: 'delete',
        type: 'danger'
      }
    ]
  }
]

export const tableColumn1 = [
  {
    label: '编号',
    prop: 'id'
  },
  {
    label: '文件名',
    prop: 'fileName'
  },
  {
    label: '下载次数',
    prop: 'downCounts'
  },
  {
    label: '上传时间',
    prop: 'updateTime'
  },
  {
    prop: '',
    label: '操作',
    width: '300px',
    align: 'center',
    type: 'outlineoper',
    // disabledMethod: disabledDelete,
    children: [
      {
        label: '下载',
        oper: 'download',
        type: 'primary'
      }
    ]
  }
]
